package web.sso.auth;

import org.springframework.web.server.ServerWebExchange;
import web.sso.auth.model.RuleModel;

/**
 * DATE: 2020/3/1
 * TIME: 12:44 上午
 * AUTHOR: hlm
 * 从请求中获取权限字段
 */
@FunctionalInterface
public interface RequestAuth {

    /**
     * 从请求数据中获取规则数据
     * @param exchange
     * @return
     */
    RuleModel getAuth(ServerWebExchange exchange);
}
